luci-app-ddns: sort list of services
authorRafał Miłecki <[email protected]>
Mon, 12 Sep 2022 14:11:38 +0000 (16:11 +0200)
committerJo-Philipp Wich <[email protected]>
Mon, 3 Apr 2023 11:45:03 +0000 (13:45 +0200)
It makes it much easier to find selected service provider.

Signed-off-by: Rafał Miłecki <[email protected]>
(cherry picked from commit 74cf149544010645dd69f3e9029d0a181138a55a)

applications/luci-app-ddns/htdocs/luci-static/resources/view/ddns/overview.js

index fd5e3af50d675b06507829d8b714344f62ee0cce..5baac07d1a80a2eb3bc6db2fc08e0df9e89f1db2 100644 (file)
@@ -91,6 +91,8 @@ return view.extend({
                                _this.services[service.name.replace('.json','')] = true
                        });
 
+                       this.services = Object.fromEntries(Object.entries(this.services).sort());
+
                        list_service.forEach(function (service) {
                                if (!_this.services[service])
                                        _this.services[service] = false;